package com.jeecg.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * TTlTiaok entity. @author MyEclipse Persistence Tools 用户定制使用
 */
@Entity
@Table(name = "MT_CORE_TIAOK", uniqueConstraints = @UniqueConstraint(columnNames = "TIAOKID"))
public class TTlTiaok implements java.io.Serializable {

	// Fields

	private Long sysid;
	//private String mobbm;
	private String biaot;
	private String neir;
	private String tiaoklx;
	//private String mobmc;
	private String isvalid;
	private String gengxsj;
	private String paix;
	private String tiaokid;
	
	// Constructors

	/** default constructor */
	public TTlTiaok() {
	}

	/** minimal constructor */
	public TTlTiaok(Long sysid) {
		this.sysid = sysid;
	}

	/** full constructor */
	public TTlTiaok(Long sysid, String biaot, String neir, String tiaoklx, String isvalid,
			String gengxsj, String paix, String tiaokid) {
		this.sysid = sysid;
		//this.mobbm = mobbm;
		this.biaot = biaot;
		this.neir = neir;
		this.tiaoklx = tiaoklx;
		//this.mobmc = mobmc;
		this.isvalid = isvalid;
		this.gengxsj = gengxsj;
		this.paix = paix;
		this.tiaokid = tiaokid;
	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "sequence", sequenceName = "SEQ_TL_TIAOK", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
	@Column(name = "SYSID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getSysid() {
		return this.sysid;
	}

	public void setSysid(Long sysid) {
		this.sysid = sysid;
	}

	/*@Column(name = "MOBBM", length = 50)
	public String getMobbm() {
		return this.mobbm;
	}

	public void setMobbm(String mobbm) {
		this.mobbm = mobbm;
	}*/

	@Column(name = "BIAOT", length = 500)
	public String getBiaot() {
		return this.biaot;
	}

	public void setBiaot(String biaot) {
		this.biaot = biaot;
	}

	@Column(name = "NEIR", length = 1000)
	public String getNeir() {
		return this.neir;
	}

	public void setNeir(String neir) {
		this.neir = neir;
	}

	@Column(name = "TIAOKLX", length = 50)
	public String getTiaoklx() {
		return this.tiaoklx;
	}

	public void setTiaoklx(String tiaoklx) {
		this.tiaoklx = tiaoklx;
	}

	/*@Column(name = "MOBMC", length = 100)
	public String getMobmc() {
		return this.mobmc;
	}

	public void setMobmc(String mobmc) {
		this.mobmc = mobmc;
	}*/

	@Column(name = "ISVALID", length = 5)
	public String getIsvalid() {
		return this.isvalid;
	}

	public void setIsvalid(String isvalid) {
		this.isvalid = isvalid;
	}

	@Column(name = "GENGXSJ", length = 50)
	public String getGengxsj() {
		return this.gengxsj;
	}

	public void setGengxsj(String gengxsj) {
		this.gengxsj = gengxsj;
	}

	@Column(name = "PAIX", length = 50)
	public String getPaix() {
		return this.paix;
	}

	public void setPaix(String paix) {
		this.paix = paix;
	}

	@Column(name = "TIAOKID", unique = true, precision = 22, scale = 0)
	public String getTiaokid() {
		String ret = null;
		if(this.tiaokid == null){
			ret = this.sysid.toString();
		}else{
			ret = this.tiaokid;
		}
		return ret;
	}

	public void setTiaokid(String tiaokid) {
		this.tiaokid = tiaokid;
	}

}